package com.winit.schedule.job.tracker.repository.mysql.dao;

import java.util.List;

import com.winit.schedule.core.repository.entity.TaskRunRecordEntity;
import com.winit.schedule.core.repository.query.TaskRunRecordQuery;
import com.winit.schedule.job.tracker.repository.mysql.plugin.SearchRequest;

public interface MysqlTaskRunRecordDao {

    public void saveTaskRunRecord(TaskRunRecordEntity taskRunRecord);

    public void updateTaskRunRecord(TaskRunRecordEntity taskRunRecord);

    public TaskRunRecordEntity getTaskRunRecordById(String taskRunnerUuid);

    public List<TaskRunRecordEntity> getTaskRunRecordPage(SearchRequest<TaskRunRecordQuery> query);

    public long getTaskRunRecordPageCount(TaskRunRecordQuery query);
    
    int deleteRunRecordByStarttime(long runStartTime);
}
